﻿@{Lang lang = ViewBag.Lang;}
@model IEnumerable<DataHelper.BK_BookingDetail>
<div class="panel panel-default">
    <div class="panel-heading">
        <i class="fa fa-external-link-square"></i>@lang.BOOKINGDETAIL
        <div class="panel-tools">
            <a class="btn btn-xs btn-link panel-collapse collapses" href="#"></a><a class="btn btn-xs btn-link panel-config"
                href="#panel-config" data-toggle="modal"><i class="fa fa-wrench"></i></a><a class="btn btn-xs btn-link panel-refresh"
                    href="#"><i class="fa fa-refresh"></i></a><a class="btn btn-xs btn-link panel-expand"
                        href="#"><i class="fa fa-resize-full"></i></a><a class="btn btn-xs btn-link panel-close"
                            href="#"><i class="fa fa-times"></i></a>
        </div>
    </div>
    <div class="panel-body">
        <table class="table table-hover" id="sample-table-1">
            <thead>
                <tr>
                    <th class="center">
                        #
                    </th>
                    <th>
                        @lang.PASSENGERTYPE
                    </th>
                    <th class="hidden-xs">
                        @lang.NAME
                    </th>
                    <th class="hidden-xs">
                        @lang.BIRTH
                    </th>
                    <th>
                        @lang.PRICE
                    </th>
                </tr>
            </thead>
            <tbody>
                @{
                    foreach (var item in Model)
                    {
                    <tr>
                        <td class="center">
                            @item.ID
                        </td>
                        <td class="hidden-xs" >
                            @(item.BK_Passenger.TypeID == 1 ? lang.ADULT : "")
                            @(item.BK_Passenger.TypeID == 2 ? lang.CHILD : "")
                            @(item.BK_Passenger.TypeID == 3 ? lang.BABY : "")
                        </td>
                        <td>
                            @item.BK_Passenger.FirstName @item.BK_Passenger.Name
                        </td>
                        <td>
                            @(item.BK_Passenger.Birthday.HasValue?item.BK_Passenger.Birthday.Value.ToString("dd/MM/yyyy"):"")
                        </td>
                        <td>
                            @item.Price.ToString("#,##0")
                        </td>
                    </tr>
                    }
                }
            </tbody>
        </table>
    </div>
</div>